package cn.com.haopy.dataes.es.entity;

import cn.easyes.annotation.IndexField;
import cn.easyes.annotation.IndexId;
import cn.easyes.annotation.IndexName;
import cn.easyes.annotation.rely.FieldType;
import cn.easyes.annotation.rely.IdType;
import lombok.Data;


@Data
@IndexName("hos_user_patient")
public class EsUserPatient {

    @IndexId(type = IdType.CUSTOMIZE)
    private Integer id;


    @IndexField(fieldType = FieldType.NESTED, nestedClass = EsUser.class)
    private EsUser user;

    @IndexField(fieldType = FieldType.NESTED, nestedClass = EsPatient.class)
    private EsPatient patient;


}
